#ifndef RAILME_H
#define RAILME_H

#include <QtGui/QMainWindow>
#include "serverwindow.h"
#include "clientwindow.h"
#include "inputdialog.h"
#include "connectionplayer.h"


namespace Ui
{
    class Railme;
}

class Railme : public QMainWindow
{
    Q_OBJECT

public:
    Railme(QWidget *parent = 0);
    ~Railme();

private:
    Ui::Railme *ui;
    ClientWindow* cw;
    ServerWindow * sw;


private slots:
    void on_actionHost_Game_triggered();
    void on_actionNew_Game_triggered();

    void onConnectionStateChanged(QAbstractSocket::SocketState state);
    void onNewPlayerConnected(ConnectionPlayer*);
    void onPlayerDisconnected(qint32 id);
};

#endif // RAILME_H
